<h2>Resources</h2>
<table>
    <tr>
        <td>Id</td><td><?php echo $authresourcegroup['Authresourcegroup']['id']; ?></td>
    </tr>
    <tr>
        <td>Resource Group Name</td><td><?php echo $authresourcegroup['Authresourcegroup']['name']; ?></td>
    </tr>
    <tr>
        <td>Resource Group Parent</td><td><?php echo $this->Html->link($authresourcegroup['Parentresourcegroup']['name'], array('controller' => 'authresourcegroups', 'action' => 'view', $authresourcegroup['Parentresourcegroup']['id'])); ?>
        </td>
    </tr>
</table>

<h3>Related Resources</h3>
<?php if (!empty($authresourcegroup['Authresource'])): ?>
    <table cellpadding = "0" cellspacing = "0" class="list issues">
        <tr>            
            <th>Resource Name</th>
            <th>Resource Description</th>            
            <th class="actions">Actions</th>
        </tr>
        <?php foreach ($authresourcegroup['Authresource'] as $authresource): ?>           
            <tr>                
                <td><?php echo $authresource['name']; ?></td>
                <td><?php echo $authresource['description']; ?></td>                
                <td class="actions">
                    <?php echo $this->Html->link(__('View', true), array('controller' => 'authresources', 'action' => 'view', $authresource['id']), array('class' => 'icon icon-read')); ?> 
                    <?php echo $this->Html->link(__('Edit', true), array('controller' => 'authresources', 'action' => 'edit', $authresource['id']), array('class' => 'icon icon-edit')); ?>
                    <?php echo $this->Html->link(__('Delete', true), array('controller' => 'authresources', 'action' => 'delete', $authresource['id']), array('class' => 'icon icon-delete'), null, sprintf(__('Are you sure you want to delete # %s?', true), $authresource['id'])); ?>
                </td>
            </tr>
        <?php endforeach; ?>
    </table>
<?php endif; ?>